package com.pos43.domain;


import java.util.HashSet;
import java.util.Set;

import com.pos43.domain.ProductType;

public class Product {

	private Integer pid;
	private String pname;
	private Float price;
	private Boolean onSale = false;
	private ProductType ProductType;
	Set<OrderItem> orderItems = new HashSet<OrderItem>();
	
	public Product(){
		
	}

	public Product(Integer pid, String pname, Float price,
			com.pos43.domain.ProductType productType, Set<OrderItem> orderItems, Boolean onSale) {
		this.pid = pid;
		this.pname = pname;
		this.price = price;
		this.onSale = onSale;
		ProductType = productType;
		this.orderItems = orderItems;
	}


	public Set<OrderItem> getOrderItems() {
		return orderItems;
	}


	public void setOrderItems(Set<OrderItem> orderItems) {
		this.orderItems = orderItems;
	}


	public Integer getPid() {
		return pid;
	}

	public void setPid(Integer pid) {
		this.pid = pid;
	}

	public String getPname() {
		return pname;
	}

	public void setPname(String pname) {
		this.pname = pname;
	}

	public Float getPrice() {
		return price;
	}

	public void setPrice(Float price) {
		this.price = price;
	}

	public ProductType getProductType() {
		return ProductType;
	}

	public void setProductType(ProductType productType) {
		ProductType = productType;
	}
	
	
	public Boolean getOnSale() {
		return onSale;
	}

	public void setOnSale(Boolean onSale) {
		this.onSale = onSale;
	}

	
	
	
	
}
